app_family.controller("controller_orderdetail", function($scope, $rootScope, httpRequest, $location) {
	$rootScope.$broadcast('currentModule', 'page_orderdetail');
	$rootScope.$broadcast('footerFlag', false); // 是否显示底部导航
	$scope.imagebasepath = imagebasepath; // 资源图片根目录
	
	data_sessionStorage = JSON.parse(sessionStorage.getItem('data_sessionStorage'));
	
	/**
	 * 判断是否用手机登录过
	 */
	if (data_sessionStorage) {
		var familyPhone = data_sessionStorage.familyInfo.phone;
		if (familyPhone == '' || familyPhone == null) {
			window.location.replace(basepath + 'login.html');
			return;
		}
	} else {
		window.location.replace(basepath + 'login.html');
		return;
	}
	
	/**
	 * 根据orderid查询订单详情
	 */
	if (data_sessionStorage.record_page.orderdetail_id) {
		var data = {
			success: true,
			obj: {
				
			},
			msg: '查询成功！'
		};
		if (data.success === true) {
			$scope.orderItem = data.obj;
		} else if (data.success === false) {
			$.dialog.showToast({msgTxt : data.msg});
		}
	}
});